﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Task 40</title>
    <script type="text/javascript">
        function OnResize(blueDiv) {
            var w = blueDiv.offsetWidth;
            var h = blueDiv.offsetHeight;
        }
        window.onresize = OnResize();
</script>
</head>
<body>
    <div id="div1" style="width:33%; border:2px solid #00ff21; height: 33%;position: absolute;top: 0%">Div 1</div>
    <div id="div2"style="width:33%; border:2px solid #f00; height: 33%;position: absolute; top: 33.3%;">Div 2</div> 
    <div id="div3"style="width:33%; border:2px solid #000; height: 33%;position: absolute; top: 66.6%;">Div 3</div>  
</body>
</html>
